package cn.wolfcode.luowowo.member.service;

import cn.wolfcode.luowowo.common.exception.LogicException;
import cn.wolfcode.luowowo.member.domain.UserInfo;

import java.util.List;

public interface IUserInfoService {
    UserInfo get(Long id);
    Boolean checkPhone(String phone);

    void sendVerifyCode(String phone);
    //如果不抛出业务异常，dubbo会自动把异常包装为RuntimeException
    void userRegist(String phone, String nickname, String password, String rpassword, String verifyCode) throws LogicException;

    String userLogin(String username, String password);

    List<UserInfo> list();
}
